package com.cf.auth.model;

import com.cf.code.core.CField;
import com.cf.code.core.CModel;
import com.cf.code.core.CPage;
import com.cf.crud.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * boot-awm-AuthItem
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/7/11 上午 11:00
 */
@Entity
@Table(name = "authItem")
@CModel(pages = {
        @CPage(title = "授权项目列表", path = "auth", templateName = "list.ftl", outPutName = "list.ftl"),
        @CPage(title = "授权项目", path = "auth", templateName = "add.ftl", outPutName = "add.ftl"),
        @CPage(title = "授权项目", path = "auth", templateName = "update.ftl", outPutName = "update.ftl")
})
public class AuthItem extends BaseEntity {

    @CField(lab = "授权Id")
    @Column(name = "authId")
    private long authId;

    @CField(lab = "cookie授权信息")
    private String cookie;

    @CField(lab = "token授权信息")
    private String token;

    @CField(lab = "请求头授权信息")
    private String head;

    public long getAuthId() {
        return authId;
    }

    public void setAuthId(long authId) {
        this.authId = authId;
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }
}
